package student;

public class students {
    private String name;
    private int age;
    private long id;
    private String site;

    public String getName() {
        return name;
    }

    public String getSite() {
        return name;
    }

    public void setSite(String x) {
        site = x;
    }

    public void setName(String x) {
        site = x;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int x) {
        if (x < 0) {
            System.out.println("你的年龄有误");
        } else {
            age = x;
        }
    }

    public long getId() {
        return id;
    }

    public void setId(long y) {
        if (y < 11 || y == id) {
            System.out.println("你输入的id有误");
        } else {
            id = y;
        }
    }

}
